fontsize1 = 28rpx
fontsize2 = 22rpx
fontsize3 = 34rpx

color1 = #28b0c8
color2 = #010101
color3 = #27b0c8
color4 = #e6e6e6
color5 = #fed900
color6 = #22c5c3

picurl = "https://resource.yla520.com/resource/images/"  

//文字初始化
initText($textsize,$textcolor)
    font-size $textsize
    color $textcolor
    line-height 100%

//图片初始化
initImage($imgWidth,$imgFloat)
    width $imgWidth
    float $imgFloat

//圆形/圆角
circular($num,$radiussize)
    if $num != ''
        width $num
        height $num
        border-radius 50%
    else
        border-radius $radiussize

//边距
initMargin($m,$num)
    if $m == ''
        margin $num
    else
        margin-{$m} $num

//边框
initBorder($b,$num,$rgba)
    if $b == ''
        border $num solid $rgba
    else if $b == none
        border $b
    else
        border-{$b} $num solid $rgba

//内填充
initPadding($p,$num)
    if $p != ''
        padding-{$p} $num
    else
        padding $num

//背景
initBackground()
    background #ffffff

morebtnStyle($istop,$isbottom)
    font-size 26rpx
    color #7d7d7d
    line-height 100%
    text-align center
    if($istop)
        margin-top @font-size + 2
    if($isbottom)
        margin-bottom 40rpx

//按钮
btn($bgcolor) {
    background $bgcolor
    width 600rpx
    height 80rpx
    line-height 80rpx
    border-radius 50rpx
    text-align center
    color #fff
    font-size 30rpx
    margin 30rpx auto
}

//已加载全部内容提示
.request-all-tips
  line-height 100%
  text-align center
  font-size 30rpx
  color #999999
  initPadding('',40rpx 0rpx)

//button初始化
initButton()
  background none
  initBorder(none,"","")
  circular("",0rpx)
  initMargin("",0rpx)
  initPadding("",0rpx)
  &:after
    content ""
    initBorder(none,"","")
    circular("",0rpx)